﻿<%@ Page Language="C#" AutoEventWireup="true" Codebehind="LogViewer.aspx.cs" Inherits="ClientTools.Server.Controls.LogViewer" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ Register TagPrefix="cc1" Namespace="umbraco.uicontrols" Assembly="controls" %>
    
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>LogViewer</title>
    <style type="text/css">
    <!--
body
{
	font-family: Arial, Verdana, Comic Sans MS;
	font-size: 11px;
	text-align: left;
}
input, select
{
    font-family: Arial, Verdana, Comic Sans MS;
	font-size: 11px;
	text-align: left;
}
h1 
{
    font-family: Arial, Verdana, Comic Sans MS;
	font-size: 14px;
	font-weight: bold;
	text-align: left;
}
div 
{
	text-align: left;
}
    -->
    </style>
</head>
<body onload="resizePanel('Panel1',true);" onresize="resizePanel('Panel1',true);">
<cc1:UmbracoPanel id="Panel1" runat="server" Width="608px" Height="336px" hasMenu="false" style="TEXT-ALIGN:center" text="Log viewer">
    <h1>
        ClientTools - LogViewer</h1>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <div id="CLientTool_Menu">
                    <asp:ImageButton runat="server" ID="cmdGetLogs" ImageUrl="/umbraco/plugins/clienttools/images/getlogs.jpg" OnClick="cmdGetLogs_Click" />
                    <asp:ImageButton runat="server" ID="cmdResetFilter" ImageUrl="/umbraco/plugins/clienttools/images/resetfilter.jpg" OnClick="cmdResetFilter_Click" />
                    <asp:ImageButton runat="server" ID="cmdDeleteLogs" ImageUrl="/umbraco/plugins/clienttools/images/deletelogs.jpg" OnClick="cmdDeleteLogs_Click" />
                    <asp:ImageButton runat="server" ID="cmdCheckAll" ImageUrl="/umbraco/plugins/clienttools/images/checkall.jpg" OnClick="cmdCheckAll_Click" />
                    <asp:ImageButton runat="server" ID="cmdUncheckAll" ImageUrl="/umbraco/plugins/clienttools/images/uncheckall.jpg" OnClick="cmdUncheckAll_Click" />
                    &nbsp;<asp:Label ID="lblCount" runat="server"></asp:Label></div>
                <div id="ClientTools_Filter">
                    <table border="0">
                        <tr>
                            <th style="width: 113px">Maximum rows:</th>
                            <td>
                                <asp:TextBox ID="txtMaxRows" runat="server" Text="100"></asp:TextBox></td>
                            <th>Header:</th>
                            <th>
                                <asp:DropDownList ID="cboHeader" runat="server" OnSelectedIndexChanged="cboHeader_SelectedIndexChanged">
                                </asp:DropDownList></th>
                        </tr>
                        <tr>
                            <th style="width: 113px">User ID:</th>
                            <td>
                                <asp:TextBox ID="txtUserID" runat="server" Text=""></asp:TextBox></td>
                            <th>
                                Startdate</th>
                            <td>
                                <asp:TextBox ID="txtStartDate" runat="server" Text=""></asp:TextBox></td>
                        </tr>
                        <tr>
                            <th style="width: 113px">Node ID:</th>
                            <td>
                                <asp:TextBox ID="txtNodeID" runat="server" Text=""></asp:TextBox></td>
                            <th>
                                Enddate</th>
                            <td>
                                <asp:TextBox ID="txtEndDate" runat="server" Text=""></asp:TextBox></td>
                        </tr>
                        <tr>
                            <th style="width: 113px">&nbsp;</th>
                            <td>&nbsp;</td>
                            <th>Comment:</th>
                            <td><asp:TextBox ID="txtComment" runat="server" Text=""></asp:TextBox></td>
                        </tr>
                        
                    </table>
                </div>
                <asp:Panel ID="pnlGrid" runat="server" Height="50px" Width="125px" Visible="false" >
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None">
                        <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                        <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
                        <Columns>
                           <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:CheckBox ID="chkRows" runat="server"/>
                                </ItemTemplate>
                            </asp:TemplateField> 
                        
                            <asp:BoundField DataField="ID" HeaderText="ID" />
                            <asp:BoundField DataField="NodeID" HeaderText="NodeID" />
                            <asp:BoundField DataField="UserID" HeaderText="UserID" />
                            <asp:BoundField DataField="DateStamp" HeaderText="Datestamp">
                                <ItemStyle Width="150px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="LogHeader" HeaderText="LogHeader" />
                            <asp:BoundField DataField="LogComment" HeaderText="LogComment" />
                        </Columns>
                        <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                        <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
                </asp:Panel>
                <asp:Panel ID="pnlMessage" runat="server" Height="50px" Width="125px" Visible="false" >
                    <asp:Label ID="lblMessage" runat="server" ForeColor="red">
                    </asp:Label>
                </asp:Panel>
            </ContentTemplate>
        </asp:UpdatePanel>
    </form>
</cc1:UmbracoPanel>
</body>
</html>
